package com.jctrip.hotel.source.model.elong.resp.offline;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author: zxy
 * @CreateTime: 2023-09-19 16:40
 * @Description:
 */
@Data
public class ElongQueryInventoryResp implements Serializable {
    @JsonProperty("Inventories")
    private List<Inventory> inventories;

    @Data
    public static class Inventory implements Serializable {
        @JsonProperty("HotelID")
        private String hotelId;

        @JsonProperty("RoomTypeId")
        private String roomTypeId;

        @JsonProperty("HotelCode")
        private String hotelCode;

        @JsonProperty("Date")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date date;

        @JsonProperty("Status")
        private Boolean status;

        @JsonProperty("Amount")
        private Integer amount;

        @JsonProperty("OverBooking")
        private Integer overBooking;

        @JsonProperty("StartDate")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date startDate;

        @JsonProperty("EndDate")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date endDate;

        @JsonProperty("StartTime")
        @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
        private Date startTime;

        @JsonProperty("EndTime")
        @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
        private Date endTime;

        @JsonProperty("IsInstantConfirm")
        private Boolean isInstantConfirm;

        @JsonProperty("IC_BeginTime")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date icBeginTime;

        @JsonProperty("IC_EndTime")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date icEndTime;
    }
}
